﻿using GameFramework;
using GameFramework.Config;
using GameFramework.Task;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace UnityGameFramework.Runtime
{
    /// <summary>
    /// 日常任务组件
    /// </summary>
    [DisallowMultipleComponent]
    [AddComponentMenu("Game Framework/DailyTask")]

    public sealed class DailyTaskComponent : GameFrameworkComponent
    {

        private ITaskManager m_TaskManager = null;
        private EventComponent m_EventComponent = null;

        protected override void Awake()
        {
            base.Awake();
            m_TaskManager = GameFrameworkEntry.GetModule<ITaskManager>();
            if (m_TaskManager == null)
            {
                Log.Fatal("Can not find task manager.");
                return;
            }
        }

        void Start()
        {
            m_EventComponent = GameEntry.GetComponent<EventComponent>();
        }    
    }
}
